﻿namespace BusinessLogicLayer
{
    using System;
    using System.Collections.Generic;
    using DataAccessLayer;

    /// <summary>
    /// An interface, that declare common
    /// elements of differentDashBoards, such as:
    /// TasksDashBoard, UserStoriesDashBoard, ProjectsDashBoard
    /// </summary>
    public interface IDashBoard
    {
        /// <summary>
        /// Gets a collection of all WorkItems in DashBoard
        /// </summary>
        List<WorkItem> Items { get; }

        /// <summary>
        /// Gets a title of DashBoard
        /// </summary>
        string Title { get; }

        /// <summary>
        /// Gets a DashBoard's date of creation
        /// </summary>
        DateTime CreatedDate { get; }

        /// <summary>
        /// Gets a DashBoard Type: Tasks, UserStories or Projects
        /// </summary>
        LayerType Type { get; }

        /// <summary>
        /// Gets or sets dashboard's collection of columns
        /// </summary>
        ColumnCollection Columns { get; set; }

        /// <summary>
        /// Method that initialize an items list from database
        /// </summary>
        void GetAllItemsList();
    }
}
